package jude.java.money.beans;

import jude.java.money.beans.global.BaseBean;

public class Site extends BaseBean {
	private static final long serialVersionUID = 2880993730138449685L;
	
	public static final int STATUS_IGNORED = -10000;//忽略
	public static final int STATUS_OTHER = -99;		//其它原因失败
	public static final int STATUS_NOT_FTP = -21;	//21端口可以访问, 但不是ftp
	public static final int STATUS_UNKNOWN_HOST = -11;//（国内）无法访问
	public static final int STATUS_SOCKET = -10;	//SocketException connection reset
	public static final int STATUS_CONNECT = -5;	//ConnectException
	public static final int STATUS_REFUSED = -4;	//ConnectException refused
	public static final int STATUS_TIMEOUT2 = -3;	//ConnectException time out
	public static final int STATUS_TIMEOUT = -2;	//SocketTimeoutException Read timed out
	public static final int STATUS_SCANNING = -1;	//扫描中
	public static final int STATUS_NEW = 0;			//新站
	public static final int STATUS_21 = 1;			//21端口可以访问, 可以访问后的数据另外存储

//	public static final int STATUS_SCAN = 2;		//21端口可以访问, 且已经扫描用户名密码
//	public static final int STATUS_LOGINED = 3;		//21端口可以访问, 且可登录
	
	public Site() {
	}
	
	public Site (String host){
		this.host = host.toLowerCase();
		this.status = STATUS_NEW;
	}
	
	private String host;
	private int status;
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}

	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
}
